<template>
	<view class="success-container">
		<view class="success-icon">✓</view>
		<h1>提交成功</h1>
		<p>感谢您的提交，我们已收到您的信息。</p>
		<p @click="btn" class="btn">返回首页</p>
	</view>
</template>
<script>
  export default {
	  methods: {
		  btn(){
			  uni.switchTab({
			      url: '/pages/index/index'
			  });

		  }
	  }
  }
</script>

<style>
	* {
		margin: 0;
		padding: 0;
		box-sizing: border-box;
		font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	}

	body {
		/* background-color: #f5f5f5; */
		color: #333;
		line-height: 1.6;
		/* padding: 20px; */
		display: flex;
		flex-direction: column;
		/* align-items: center; */
		justify-content: center;
		min-height: 100vh;
	}

	.success-container {
		background: white;
		border-radius: 0 0 12px 12px;
		padding: 30px;
		margin: 0px auto;
		width: 90%;
		/* max-width: 400px; */
		text-align: center;
		box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
	}

	.success-icon {
		width: 80px;
		height: 80px;
		margin: 0 auto 20px;
		display: flex;
		align-items: center;
		justify-content: center;
		background-color: #4CAF50;
		border-radius: 50%;
		color: white;
		font-size: 40px;
	}

	h1 {
		font-size: 22px;
		margin-bottom: 15px;
		color: #333;
	}

	p {
		font-size: 16px;
		color: #666;
		margin-bottom: 25px;
	}

	.btn {
		display: inline-block;
		background-color: #4CAF50;
		color: white;
		text-decoration: none;
		padding: 12px 24px;
		border-radius: 25px;
		font-size: 16px;
		font-weight: 500;
		transition: background-color 0.3s;
	}

	.btn:hover {
		background-color: #3e8e41;
	}

	.additional-info {
		margin-top: 30px;
		font-size: 14px;
		color: #999;
	}
</style>